package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Order;
import com.itheima.pojo.Result;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

public interface OrderService extends IService<Order> {
    Result getAll(String beginTime, String endTime, Integer number,
                  Integer page, Integer pageSize);

    Result update(Integer status, String id);

    @Transactional
    Result placeOrder(@RequestBody Order order);

    Result orderList(Integer page, Integer pageSize);
}
